Update Phone Verification
PATCH /api/v1/users/{userId}/countries/{dialingCode}/phone/{phone}/verification
Description
Update phone verification for a user.
Path Parameters
| Name | Type | Description |
|---|---|---|
userId | string | The user ID (path) |
phone | string | The phone number (path) |
dialingCode | string | The country dialing code (path) |
Request Body
- Content Type:
application/json
{
"verificationCode": "string"
}
Response Code: 200 - OK
Description
Phone verification updated successfully.
Response Fields
| Field | Type | Description |
|---|---|---|
| status | boolean | Indicates if the operation was successful |
| statusCode | integer | Status code |
| message | string | Response message |
| data | object | Data related to the phone verification |
{
"status": true,
"statusCode": 0,
"message": "Phone verification updated successfully",
"data": {}
}
Method: PATCH
>http://your-api-url/api/v1/users/{userId}/countries/{dialingCode}/phone/{phone}/verification
Headers
| Content-Type | Value |
|---|---|
| apiKey | {{apiKey}} |
Body
{
"verificationCode": "123456"
}
🔑 Authentication bearer
| Param | Value | Type |
|---|---|---|
| token | {{accessCode}} | string |
LANGUAGE
CURL REQUEST
curl --request PATCH \
--url /api/v1/users/{userId}/countries/{dialingCode}/phone/{phone}/verification \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!